<!DOCTYPE html>
<html dir="ltr" lang="zh_cn"><!--<![endif]--><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>地址管理</title>
    <base href="https://mall.opencart.cn/">

    <!-- Facebook share -->
    <meta property="og:site_name" content="OpenCart 3.0 中文专业版 - PHP 开源电商系统">
    <meta property="og:url" content="https://mall.opencart.cn/index.php?route=account/address/edit&amp;address_id=342">
    <meta property="og:type" content="website">
    <meta property="og:title" content="地址管理">
    <meta property="og:description" content="">
    <meta property="og:image" content="https://mall.opencart.cn/image/cache/catalog/logo-600x315.png">
    <meta property="og:image:width" content="600">
    <meta property="og:image:height" content="315">

    <script src="https://hm.baidu.com/hm.js?752079c169218184ec5f539120602ec2"></script><script src="https://mall.opencart.cn/catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
    <script src="https://mall.opencart.cn/catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="https://mall.opencart.cn/catalog/view/javascript/layer/layer.js" type="text/javascript"></script><link rel="stylesheet" href="https://mall.opencart.cn/catalog/view/javascript/layer/theme/default/layer.css?v=3.1.1" id="layuicss-layer">
    <script src="https://mall.opencart.cn/catalog/view/theme/mobile/javascript/jquery.unveil.js" type="text/javascript"></script>
    <link href="https://mall.opencart.cn/catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://mall.opencart.cn/catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://mall.opencart.cn/catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen">
    <script src="https://mall.opencart.cn/catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
    <script src="https://mall.opencart.cn/catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
    <script src="https://mall.opencart.cn/catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
    <script src="https://mall.opencart.cn/catalog/view/theme/mobile/javascript/common.js" type="text/javascript"></script>
    <link href="https://mall.opencart.cn/catalog/view/theme/mobile/stylesheet/stylesheet.css" rel="stylesheet">
    <script>
        var _hmt = _hmt || []; (function() {var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?752079c169218184ec5f539120602ec2"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();
    </script>

</head>
<body class="account-address-edit" ontouchstart="" onmouseover="">

<a href="#page-top" class="go-top" style="display: none;"><i class="iconfont"></i></a>


<div id="account-address" class="container">
    <ul class="breadcrumb">
        <li><a href="https://mall.opencart.cn/">首页</a></li>
        <li><a href="https://mall.opencart.cn/index.php?route=account/account">会员中心</a></li>
        <li><a href="https://mall.opencart.cn/index.php?route=account/address">地址管理</a></li>
        <li><a href="https://mall.opencart.cn/index.php?route=account/address/edit&amp;address_id=342">编辑地址</a></li>
    </ul>

    <div class="row">
        <div id="content" class="col-sm-12">
            <div class="nav-bar">编辑地址</div>
            <div class="row widget">
                <div class="col-xs-12">
                    <form action="https://mall.opencart.cn/index.php?route=account/address/edit&amp;address_id=342" method="post" enctype="multipart/form-data" class="form-horizontal">
                        <fieldset>
                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-fullname">姓名</label>
                                <div class="col-sm-10">
                                    <input type="text" name="fullname" value="cloud" placeholder="姓名*" id="input-fullname" class="form-control">
                                </div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-telephone">联系电话</label>
                                <div class="col-sm-10">
                                    <input type="text" name="telephone" value="12312312312" placeholder="联系电话*" id="input-telephone" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="input-company">公司名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="company" value="" placeholder="公司名称" id="input-company" class="form-control">
                                </div>
                            </div>
                            <div class="form-group required hidden">
                                <label class="col-sm-2 control-label" for="input-country">国家</label>
                                <div class="col-sm-10">
                                    <select name="country_id" id="input-country" class="form-control">
                                        <option value=""> --- 请选择 --- </option>
                                        <option value="44" selected="selected">中国</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-zone">省份</label>
                                <div class="col-sm-10">
                                    <select name="zone_id" id="input-zone" class="form-control"><option value=""> --- 请选择 --- </option><option value="708" selected="selected">上海市</option><option value="713">云南省</option><option value="699">内蒙古自治区</option><option value="685">北京市</option><option value="4237">台湾省</option><option value="702">吉林省</option><option value="710">四川省</option><option value="711">天津市</option><option value="705">宁夏回族自治区</option><option value="684">安徽省</option><option value="707">山东省</option><option value="706">山西省</option><option value="689">广东省</option><option value="690">广西壮族自治区</option><option value="712">新疆维吾尔自治区</option><option value="700">江苏省</option><option value="701">江西省</option><option value="693">河北省</option><option value="695">河南省</option><option value="714">浙江省</option><option value="692">海南省</option><option value="697">湖北省</option><option value="698">湖南省</option><option value="704">澳门特别行政区</option><option value="688">甘肃省</option><option value="687">福建省</option><option value="4236">西藏自治区</option><option value="691">贵州省</option><option value="703">辽宁省</option><option value="686">重庆市</option><option value="709">陕西省</option><option value="4232">青海省</option><option value="696">香港特别行政区</option><option value="694">黑龙江省</option></select>
                                </div>
                            </div>
                            <div class="form-group required ">
                                <label class="col-sm-2 control-label" for="input-city">城市</label>
                                <div class="col-sm-10">
                                    <select name="city_id" id="input-city" class="form-control"><option value=""> --- 请选择 --- </option><option value="3408" selected="selected">市辖区</option></select>
                                </div>
                            </div>
                            <div class="form-group required ">
                                <label class="col-sm-2 control-label" for="input-city">城镇/区域</label>
                                <div class="col-sm-10">
                                    <select name="county_id" id="input-county" class="form-control"><option value=""> --- 请选择 --- </option><option value="2418">南汇区</option><option value="2403">卢湾区</option><option value="2413">嘉定区</option><option value="2419">奉贤区</option><option value="2412">宝山区</option><option value="2420">崇明县</option><option value="2404" selected="selected">徐汇区</option><option value="2407">普陀区</option><option value="2410">杨浦区</option><option value="2416">松江区</option><option value="2414">浦东新区</option><option value="2409">虹口区</option><option value="2415">金山区</option><option value="2405">长宁区</option><option value="2411">闵行区</option><option value="2408">闸北区</option><option value="2417">青浦区</option><option value="2406">静安区</option><option value="2402">黄浦区</option></select>
                                </div>
                            </div>
                            <div class="form-group required hidden">
                                <label class="col-sm-2 control-label" for="input-city">城市</label>
                                <div class="col-sm-10">
                                    <input type="text" name="city" value="" placeholder="城市*" id="input-city" class="form-control">
                                </div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-address-1">详细地址</label>
                                <div class="col-sm-10">
                                    <input type="text" name="address_1" value="sdadasd" placeholder="详细地址*" id="input-address-1" class="form-control">
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <label class="col-sm-2 control-label" for="input-address-2">地址行 2</label>
                                <div class="col-sm-10">
                                    <input type="text" name="address_2" value="" placeholder="地址行 2" id="input-address-2" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="input-postcode">邮政编码</label>
                                <div class="col-sm-10">
                                    <input type="text" name="postcode" value="123123" placeholder="邮政编码*" id="input-postcode" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">默认地址</label>
                                <div class="col-sm-10">                   <label class="radio-inline">
                                    <input type="radio" name="default" value="1" checked="checked">
                                    是</label>
                                    <label class="radio-inline">
                                        <input type="radio" name="default" value="0">
                                        否</label>
                                </div>
                            </div>
                        </fieldset>
                        <div class="buttons clearfix">
                            <div class="pull-right">
                                <input type="submit" value="提交" class="btn btn-primary">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript"><!--
// Sort the custom fields
$('.form-group[data-sort]').detach().each(function() {
    if ($(this).attr('data-sort') >= 0 && $(this).attr('data-sort') <= $('.form-group').length) {
        $('.form-group').eq(parseInt($(this).attr('data-sort'))).before(this);
    }

    if ($(this).attr('data-sort') > $('.form-group').length) {
        $('.form-group:last').after(this);
    }

    if ($(this).attr('data-sort') == $('.form-group').length) {
        $('.form-group:last').after(this);
    }

    if ($(this).attr('data-sort') < -$('.form-group').length) {
        $('.form-group:first').before(this);
    }
});
//--></script>
<script type="text/javascript"><!--
$('button[id^=\'button-custom-field\']').on('click', function() {
    var element = this;

    $('#form-upload').remove();

    $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');

    $('#form-upload input[name=\'file\']').trigger('click');

    if (typeof timer != 'undefined') {
        clearInterval(timer);
    }

    timer = setInterval(function() {
        if ($('#form-upload input[name=\'file\']').val() != '') {
            clearInterval(timer);

            $.ajax({
                url: 'index.php?route=tool/upload',
                type: 'post',
                dataType: 'json',
                data: new FormData($('#form-upload')[0]),
                cache: false,
                contentType: false,
                processData: false,
                beforeSend: function() {
                    $(element).button('loading');
                },
                complete: function() {
                    $(element).button('reset');
                },
                success: function(json) {
                    $(element).parent().find('.text-danger').remove();

                    if (json['error']) {
                        $(element).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');
                    }

                    if (json['success']) {
                        alert(json['success']);

                        $(element).parent().find('input').val(json['code']);
                    }
                },
                error: function(xhr, ajaxOptions, thrownError) {
                    alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                }
            });
        }
    }, 500);
});
//--></script>
<script type="text/javascript"><!--
$('.date').datetimepicker({
    language: 'en-gb',
    pickTime: false
});

$('.datetime').datetimepicker({
    language: 'en-gb',
    pickDate: true,
    pickTime: true
});

$('.time').datetimepicker({
    language: 'en-gb',
    pickDate: false
});
//--></script>
<script type="text/javascript"><!--
$('select[name=\'country_id\']').on('change', function() {
    $.ajax({
        url: 'index.php?route=account/account/country&country_id=' + this.value,
        dataType: 'json',
        beforeSend: function() {
            $('select[name=\'country_id\']').prop('disabled', true);
        },
        complete: function() {
            $('select[name=\'country_id\']').prop('disabled', false);
        },
        success: function(json) {
            if (json['postcode_required'] == '1') {
                $('input[name=\'postcode\']').parent().parent().addClass('required');
            } else {
                $('input[name=\'postcode\']').parent().parent().removeClass('required');
            }

            html = '<option value=""> --- 请选择 --- </option>';

            if (json['zone'] && json['zone'] != '') {
                for (i = 0; i < json['zone'].length; i++) {
                    html += '<option value="' + json['zone'][i]['zone_id'] + '"';

                    if (json['zone'][i]['zone_id'] == '708') {
                        html += ' selected="selected"';
                    }

                    html += '>' + json['zone'][i]['name'] + '</option>';
                }
            } else {
                html += '<option value="0" selected="selected"> --- 无 --- </option>';
            }

            $('select[name=\'zone_id\']').html(html);
            $('select[name=\'city_id\']').html('<option> --- 请选择 --- </option>');
            $('select[name=\'county_id\']').html('<option> --- 请选择 --- </option>');
            $('select[name=\'zone_id\']').trigger('change');
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
    });
});
$('select[name=\'country_id\']').trigger('change');
//--></script>

<script type="text/javascript"><!--
var showCityOrCountyOptions = function(currentEl, changeEl, isTop, cityId, callback) {
    var zoneId = currentEl.val();
    if (zoneId == null) return;
    var requestUrl = 'index.php?route=account/account/zone&zone_id=' + zoneId + '&is_top=' + isTop;
    $.ajax({
        url: requestUrl,
        dataType: 'json',
        beforeSend: function () {
            $('select[name=\'zone_id\']').after('<i class="fa fa-circle-o-notch fa-spin"></i>');
        },
        complete: function () {
            $('.fa-spin').remove();
        },
        success: function (json) {
            html = '<option value=""> --- 请选择 --- </option>';
            if (json['city'] && json['city'] != '') {
                for (i = 0; i < json['city'].length; i++) {
                    html += '<option value="' + json['city'][i]['city_id'] + '"';
                    if (json['city'][i]['city_id'] == cityId) {
                        html += ' selected="selected"';
                    }
                    html += '>' + json['city'][i]['name'] + '</option>';
                }
            } else {
                html += '<option value="0" selected="selected"> --- 无 --- </option>';
            }
            changeEl.html(html);
            if (typeof(callback) == 'function') {
                callback();
            }
        },
        error: function (xhr, ajaxOptions, thrownError) {
            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
    });
};

$('select[name=\'zone_id\']').bind('change', function() {
    var changeEl = $('select[name=\'city_id\']');
    var cityId = '3408';
    showCityOrCountyOptions($(this), changeEl, 1, cityId, function() {
        changeEl.trigger('change');
    });
});

$('select[name=\'city_id\']').bind('change', function() {
    var changeEl = $('select[name=\'county_id\']');
    var countyId = '2404';
    showCityOrCountyOptions($(this), changeEl, 0, countyId);
});
//--></script>
<footer>
    <div class="language-currency-wrapper mb-1 mt-1">
        <a href="#" id="switch-language">
            <img src="catalog/language/zh-cn/zh-cn.png" alt="简体中文" title="简体中文">
            简体中文
        </a>

        <script type="text/javascript">
            $('#switch-language').click(function (e) {
                e.preventDefault();
                layer.open({
                    type: 1,
                    title: '语言',
                    closeBtn: 1,
                    anim: 2,
                    shadeClose: true,
                    scrollbar: false,
                    area: ['80%'],
                    content: language_modal_content()
                });
            });

            function language_modal_content() {
                var html = '';
                html += '<div class="p-2">';
                html += '<form action="https://mall.opencart.cn/index.php?route=common/language/language" method="post" enctype="multipart/form-data" id="language">';
                html += '<input type="hidden" name="code" value="" />';
                html += '<input type="hidden" name="redirect" value="https://mall.opencart.cn/index.php?route=account/address/edit&amp;address_id=342" />';
                html += '<div class="list-group mb-0">';
                html += '<a href="de-de" class="list-group-item"><img src="catalog/language/de-de/de-de.png"/> Deutsch</a>';
                html += '<a href="es-es" class="list-group-item"><img src="catalog/language/es-es/es-es.png"/> Espanol</a>';
                html += '<a href="fr-fr" class="list-group-item"><img src="catalog/language/fr-fr/fr-fr.png"/> French</a>';
                html += '<a href="ru-ru" class="list-group-item"><img src="catalog/language/ru-ru/ru-ru.png"/> Russian</a>';
                html += '<a href="zh-hk" class="list-group-item"><img src="catalog/language/zh-hk/zh-hk.png"/> 中文繁体</a>';
                html += '<a href="zh-cn" class="list-group-item"><img src="catalog/language/zh-cn/zh-cn.png"/> 简体中文</a>';
                html += '<a href="en-gb" class="list-group-item"><img src="catalog/language/en-gb/en-gb.png"/> English</a>';
                html += '</div>';
                html += '</form>';
                html += '</div>';
                return html;
            }
        </script>

        <a href="#" id="switch-currency">
            ￥  人民币
        </a>

        <script type="text/javascript">
            $('#switch-currency').click(function (e) {
                e.preventDefault();
                layer.open({
                    type: 1,
                    title: '货币',
                    closeBtn: 1,
                    anim: 2,
                    shadeClose: true,
                    scrollbar: false,
                    area: ['80%'],
                    content: currency_modal_content()
                });
            });

            function currency_modal_content() {
                var html = '';
                html += '<div class="p-2">';
                html += '<form action="https://mall.opencart.cn/index.php?route=common/currency/currency" method="post" enctype="multipart/form-data" id="currency">';
                html += '<input type="hidden" name="code" value="" />';
                html += '<input type="hidden" name="redirect" value="https://mall.opencart.cn/index.php?route=account/address/edit&amp;address_id=342" />';
                html += '<div class="list-group mb-0">';
                html += '<a href="USD" class="list-group-item">$ US Dollar</a>';
                html += '<a href="CNY" class="list-group-item">￥ 人民币</a>';
                html += '</div>';
                html += '</form>';
                html += '</div>';
                return html;
            }
        </script>

    </div>
    <div class="container">
        <div class="footer-powered">
            技术支持 <a href="http://www.opencart.cn">opencart.cn</a> OpenCart 3.0 中文专业版 - PHP 开源电商系统 © 2018
        </div>
    </div>
</footer>
<nav id="bottom-tab-menu">
    <div class="menu-item">
        <a class="" href="https://mall.opencart.cn/">
            <i class="iconfont"></i>
            <div class="name">首页</div>
        </a>
    </div>
    <div class="menu-item">
        <a class="" href="https://mall.opencart.cn/index.php?route=product/search">
            <i class="iconfont"></i>
            <div class="name">搜索</div>
        </a>
    </div>
    <div class="menu-item">
        <a class="" href="https://mall.opencart.cn/index.php?route=mobile/categories">
            <i class="iconfont"></i>
            <div class="name">分类</div>
        </a>
    </div>
    <div class="menu-item cart">
        <a class="" href="https://mall.opencart.cn/index.php?route=checkout/cart">
            <i class="iconfont"><span class="cart-total" style=""></span></i>
            <div class="name">购物车</div>
        </a>
    </div>
    <div class="menu-item">
        <a class="active" href="https://mall.opencart.cn/index.php?route=account/account">
            <i class="iconfont"></i>
            <div class="name">我的</div>
        </a>
    </div>
</nav>




</body></html>
